package com.mini.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: xiyuefei
 * Date: 2020/12/15
 * Time: 上午10:21
 */

@Data
@ApiModel(value = "分配上限管理表")
@Entity
@NoArgsConstructor
@AllArgsConstructor
public class BusinessChanceMaxSet {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @ApiModelProperty(value = "运营人员id")
    private Long userId;

    @ApiModelProperty(value = "每日分配的新机会的上限值")
    private Integer chanceEveryDay;

    @ApiModelProperty(value = "未跟进的新机会上限值")
    private Integer chanceUnfollow;

    @ApiModelProperty(value = "编辑的用户id")
    private Long editUserId;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "用户名字")
    @Transient
    private String username;

    @ApiModelProperty(value = "邮箱账号")
    @Transient
    private String nickname;

}
